<?php
include "User.php";
include "Exam.php";
include "Questionnaire.php";

$user = new User();

$user->setUserName("har");
$user->setPassword("har");
$user->setRole("student");
$user->setFirstName("harshi");
$user->setLastName("Grandhi");
$user->setGender("female");
$user->setEmail("harshitha@saimail.com");
$user->setMobile("8142087648");


#$user->signUpStudent();
#$user->deleteUser();
#$user->signUp();
#$user->editProfileStudent();
$ex = new Exam();
$ex->setExamCode("01");
$ex->setExamDate("2012-06-05");
$ex->setMaxMarks(100);
$ex->setScore(10);
$que=new Questionnaire();
/*
$que->setQno(2);
$que->setQuestion("q1");
$que->setOption1("op1");
$que->setOption2("op2");
$que->setOption3("op3");
$que->setOption4("op4");
$que->setCorrectAns("q1");
*/
$que->setSubject("maths");
/*
$que->setExplanation("hksjdkhc");
$que->createQuestionnaire($ex->getExamCode());

#$ex->createExam();
*/
#$que->getQuestionnaire($ex->getExamCode(),$que->getSubject());

$ex->result($user->getUsername(),$ex->getExamCode());

?>
